import java.util.UUID;

/**
 * Created by ZhaoJun on 2021/11/24 16:40
 */
public class test01 {
    public static void main(String[] args) {
        String file = "sadasddada.jpg";
        String[] split = file.split("\\.");

        String posName = split[1];
        System.out.println(posName);
        String name = UUID.randomUUID()+"."+posName;

        System.out.println(name);
    }
}
